﻿<?xml version="1.0" encoding="utf-8" ?> 
<Feature>
	<BusinessRules>
		<BusinessRule name="getCaptchaImage" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.CaptchaVerifierBizRules,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="shouldShowUserVerification" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.CaptchaVerifierBizRules,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="generateRandomString" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.CaptchaVerifierBizRules,ScsCore" />
			</Option>
		</BusinessRule>
	</BusinessRules>

	<BusinessRules>
		<BusinessRule name="createUserEmailVerification" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.UserEmailVerificationBizRules,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="getUserEmailVerificationInfo" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.UserEmailVerificationBizRules,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="deleteUserEmailVerification" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.UserEmailVerificationBizRules,ScsCore" />
			</Option>
		</BusinessRule>
	</BusinessRules>

	<BusinessObjects>
		<BusinessObject type="UserVerifyClientInfo" key="id">
			<Field name="id" type="Integer" />
			<Field name="canEdit" type="Boolean" />
			<Field name="privilegeName" type="String" />
		</BusinessObject>
		
		<BusinessObject type="UserVerification" key="id">
			<Field name="id" type="Integer"/>
			<Field name="captchaInput" type="String" />
			<Field name="wasVerified" type="Integer" /><!-- 0= not verified yet, 1 = verified correctly, 2 = failed verification -->
			<Field name="imageName" type="String">x</Field>
		</BusinessObject>

		<BusinessObject type="UserEmailVerification" key="id">
			<Field name="id" type="Guid" />
			<Field name="completeBizRule" type="String" />
			<Field name="activateData" type="BizObj" />
		</BusinessObject>
	</BusinessObjects>

	<ClassFactory id="BizProcs">
		<Class type="Syrinx.Gui.CaptchaVerifierBizProc,ScsCore" name="captchaVerify"/>
	</ClassFactory>
</Feature>